package annimation.com.junge;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import annimation.com.junge.annimation.Loge;
import annimation.com.junge.entity.User;
import annimation.com.junge.service.UserService;

/**
 * Hello world!
 *
 */
@SpringBootApplication
@RestController
@EnableAspectJAutoProxy
public class App 
{
    public static void main( String[] args )
    {
        SpringApplication.run(App.class, args);
    }
    @Autowired
    UserService service;
    @RequestMapping("test")
    @Loge("zjtest")
    public Object zjtest(){
    User u=service.select(1);
//    sSystem.err.println(u.getId());
    	return service.select(1);
    }
}
